import React from 'react'


import { Routes, Route, Outlet } from 'react-router-dom'
import Car1 from './Car1'
import Car2 from './Car2'
type Props = {}
export default function Car({ }: Props) {
    return (
        <div>
            购物车
            {/*   // 定义路由匹配规则 */}

            {/* 准备一个二级路由组件显示的坑
                在vue中称之为 router-view
                在react-router-dom@6 叫 Outlet 组件
             */}

            <Outlet></Outlet>
        </div>


    )
}